<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of cargarDivision
 *
 * @author Suco
 */
include_once '../core/InterfazDatos.php';
include_once '../core/Conexion.php';
include_once '../core/Controlador.php';
include_once '../core/ControladorSet.php';

class cargarDivision extends ControladorSet {
   
    
    
    
    
    public function buscarValores() {
       
        $consulta=$this->conexion->consultaLibre("SELECT *FROM TBL_DIVISION");
        $fila=  mysql_fetch_array($consulta);
          $codigoHtml="";
        do{
            
            $codigoHtml=$codigoHtml."<option value=".$fila[0].">".$fila[1]."</option>";
            
        }while($fila=mysql_fetch_array($consulta));
        
        $this->diccionario['datosDivision']=$codigoHtml;
        
        
    }

    public function setDiccionario() {
        
        $this->diccionario= array(
           "datosDivision"=>"",
            
          
           
       );
    }

    public function setValorSesion() {
        
        return array(
           "titular"
        ); 
        
    }


}

$controlador= new cargarDivision("titularVista.php");
$controlador->rederizarPagina();

?>
